﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity;

namespace SampleApplication.Models
{
    public interface IUnitOfWork
    {
        IDbSet<Person> People { get; set; }

        // このメソッドの存在が気に入らない！
        DbSet<T> Set<T>() where T : class;

        int SaveChanges();
    }
}
